package com.zeng.pojo;

/**
 * @author zeng
 * @data 2021/06/06 15:46
 */
public class User {
    private String user;
    //没有set方法
    private String course;
    private Cat cat;

    public Cat getCat() {
        return cat;
    }

    public void setCat(Cat cat) {
        this.cat = cat;
    }

    public User(String user, String course, Cat cat) {
        this.user = user;
        this.course = course;
        this.cat = cat;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public User() {
        System.out.println("User-course的无参构造");
    }

    public User(String course) {
        this.course = course;
    }

    public String getUser() {
        return user + course;
    }

    public void setUser(String user) {
        this.user = user;
    }
}
